package com.tlvip.tlvipweb.config;

import com.tlvip.tlvipweb.listener.ListenerDemo;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>description：</p>
 * <p>copyright： copyright(C)2016-2099</p>
 * <p>Life is short,we need passion</p>
 * <p>Summary： </p>
 * <p>instructions： </p>
 * Date 3/8/21</p>
 * Author mac
 *
 * @version 1.0
 */
@Configuration
public class ListenerConfig {

    @Bean
    public ServletListenerRegistrationBean<ListenerDemo> servletListenerRegistrationBean() {
        return new ServletListenerRegistrationBean<>(new ListenerDemo());
    }
}
